package top.yaofengqiao.springcloudsimple.auth.biz.domain.auth.repository;

import top.yaofengqiao.springcloudsimple.auth.biz.domain.auth.model.entity.AccessTokenEntity;
import top.yaofengqiao.springcloudsimple.auth.biz.domain.auth.model.entity.RefreshTokenEntity;

/**
 * @author yfq
 * @date 2024/6/6 9:50
 * @description
 */
public interface IOauthTokenRepository {
    boolean createAccessToken(AccessTokenEntity accessTokenEntity);

    boolean createRefreshToken(RefreshTokenEntity refreshTokenEntity);

    RefreshTokenEntity queryRefreshToken(String refreshToken);

    AccessTokenEntity queryAccessToken(String refreshToken);
}
